<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script>
function createPerson(name,qq)
{
	//var obj=new Object();
	
	this.name=name;
	this.qq=qq;
	
	this.showName=function()
	{
		alert('我的名字叫：'+this.name);
	}
	this.showQQ=function()
	{
		alert('我的QQ号：'+this.qq);
	}
	
	//return obj;
}
var obj=new createPerson('blue','258248832');
obj.showName();
obj.showQQ();

var obj2=new createPerson('张三','2654689732');
obj2.showName();
obj2.showQQ();
</script>
</head>

<body>
</body>
</html>
